import request from '@/utils/request'

// 查询电缆台账列表
export function listNyCableAccount(query) {
  return request({
    url: '/energy/nyCableAccount/list',
    method: 'get',
    params: query
  })
}

// 查询电缆台账详细
export function getNyCableAccount(id) {
  return request({
    url: '/energy/nyCableAccount/' + id,
    method: 'get'
  })
}

// 新增电缆台账
export function addNyCableAccount(data) {
  return request({
    url: '/energy/nyCableAccount',
    method: 'post',
    data: data
  })
}

// 修改电缆台账
export function updateNyCableAccount(data) {
  return request({
    url: '/energy/nyCableAccount',
    method: 'put',
    data: data
  })
}

// 删除电缆台账
export function delNyCableAccount(id) {
  return request({
    url: '/energy/nyCableAccount/' + id,
    method: 'delete'
  })
}
